<?php
        require('./Utils.php');

        $post = getJsonParamter();
        $image = $post['image'];

        $conn = getConnection();
        $sql = "INSERT INTO carousel(image) VALUES (?)";

        $result = execute($conn, $sql, $image);

        if($result) getJson(200, '添加成功', null);

        else getJson(500, '添加失败', null);
?>